@import "~@/mixin.less";

.component {
  position: relative;

  &:after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    transition: all .3s ease;
    box-shadow: inset 0 0 0 4px hsla(0, 0%, 40%, .2);
  }

  &:hover {
    &:after {
      box-shadow: inset 0 0 0 4px rgba(234, 184, 57, 0.85);
    }
    & .img {
      transform: scale(1.1);
    }
  }
}

.imgWrapper {
  overflow: hidden;

  .img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 3px;
  padding: 2px;
  font-size: 80%;
  color: #fff;
  z-index: 1;
  background: rgba(117, 117, 117, .65);

  &:hover {
    background: rgba(117, 117, 117, 1);
  }
}

.user {
  display: flex;
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: rgba(255, 255, 255, 0.8);
  text-align: left;
  border-radius: 32px 5px 5px 32px;
  overflow: hidden;
  align-items: center;
  padding: 3px 0 3px 3px;
  background-color: rgba(117, 117, 117, .3);
  z-index: 1;

  .avatar {
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.55);
    border: 2px solid #fff;
  }

  .meta {
    font-size: .8em;
    padding-left: 4px;
    padding-right: 5px;
    overflow: hidden;
    z-index: -1;
    color: #fff;

    .username {
      font-size: 1.2em;
      font-weight: 500;
    }

    .more {
      display: flex;
      align-items: baseline;
      font-weight: 300;

      .camera {

      }

      .city {
        font-size: 1.3em;
      }
    }
  }


  &:hover {
    background-color: rgba(117, 117, 117, .8);

    .meta {
      z-index: 0;
    }
  }
}

